-- GENERATED SPELL FOR [Morbent Fel] --


function spell0_1200(pUnit, Event) --@Presence of Death,n/a--
pUnit:FullCastSpellOnTarget(3109,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1200', 11000, 1)
end

function spell1_1200(pUnit, Event) --@Touch of Death,Heal--
pUnit:FullCastSpellOnTarget(3108,pUnit)
pUnit:RegisterEvent('Sorts_1200', 3000, 1)
end

function spell2_1200(pUnit, Event) --@Unholy Shield,Self--
pUnit:FullCastSpellOnTarget(8909,pUnit)
pUnit:RegisterEvent('Sorts_1200', 0, 1)
end

function Sorts_1200(pUnit, Event)
local choix_sorts_1200 = math.random(0, 2)
if choix_sorts_1200 == 0 then
pUnit:RegisterEvent('spell0_1200', 1, 1)
end
if choix_sorts_1200 == 1 then
pUnit:RegisterEvent('spell1_1200', 1, 1)
end
if choix_sorts_1200 == 2 then
pUnit:RegisterEvent('spell2_1200', 1, 1)
end
end

function mob1200_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1200', math.random(1500, 3000), 1)
end

function mob1200_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1200_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1200_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1200, 1, 'mob1200_Action')
RegisterUnitEvent(1200, 2, 'mob1200_Leave')
RegisterUnitEvent(1200, 3, 'mob1200_Kill')
RegisterUnitEvent(1200, 4, 'mob1200_Die')
